package com.eobjectsoft.etranslator.utils;


public class LOG
{

	public static final String DEBUG_PROPERTY = "debug.translate";
	
    public LOG()
    {
    }

    public static boolean isDebugMode()
    {
        return System.getProperty("debug.translate") != null;
    }

    public static void debug(String info)
    {
        if(isDebugMode())
            System.out.println(info);
    }

    public static void error(Throwable th)
    {
        th.printStackTrace();
    }

    public static void error(String info, Throwable th)
    {
        System.err.println(info);
        if(th != null)
            th.printStackTrace();
    }

}
